package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.Post;
import com.net.tkc.pro.impl.PostImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PostService implements PostImpl{
    @Resource
    PostImpl postimpl;

    @Override
    public int addPost(Post Post) {
        return postimpl.addPost(Post);
    }

    @Override
    public int upPost(String title, String content, String picture, String video, String type, int examine, int ban, int id) {
        return postimpl.upPost(title, content, picture, video, type, examine, ban, id);
    }

    @Override
    public int upPostCount_fabulous(int id) {
        return postimpl.upPostCount_fabulous(id);
    }

    @Override
    public int upPostCount_share(int id) {
        return postimpl.upPostCount_share(id);
    }

    @Override
    public int upPostCount_see(int id) {
        return postimpl.upPostCount_see(id);
    }

    @Override
    public int upPostComment(int id) {
        return postimpl.upPostComment(id);
    }

    @Override
    public int upBan(int id) {
        return postimpl.upBan(id);
    }

    @Override
    public int upType(String type, int ban, int id) {
        return postimpl.upType(type, ban, id);
    }

    @Override
    public List<Post> getPostList(String type, int Start, int Page) {
        return postimpl.getPostList(type, Start, Page);
    }

    @Override
    public List<Post> getPost() {
        return postimpl.getPost();
    }

    @Override
    public List<Post> getPostList2(String type, int Start, int Page) {
        return postimpl.getPostList2(type, Start, Page);
    }

    @Override
    public List<Post> getPost2(int userid) {
        return postimpl.getPost();
    }
    @Override
    public List<Post> getId(int userid) {
        return postimpl.getId(userid);
    }

    @Override
    public List<Post> getPostid(int id) {
        return postimpl.getPostid(id);
    }
}
